from flask import session,render_template,current_app
# 导入蓝图对象
from . import news_blue

@news_blue.route('/')
def index():
    # 实现状态保持
    # session['itcast'] = '2018'
    return render_template('news/index.html')

# 项目logo图标加载，浏览器会默认请求
# http://127.0.0.1/favicon.ico
@news_blue.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')